import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
    {
        path: '/base-usage',
        component: () => import('../components/BaseUsageView')
    },
    {
        path: '/mapState-usage',
        component: () => import('../components/MapStateUsageView')
    },
    {
        path: '/getters-usage',
        component: () => import('../components/GettersUsageView')
    }
]

const router = new VueRouter({
    routes,
    mode: 'history',
    base: process.env.BASE_URL
})

export default router